<?php

class FacebookUserIdentities
{
    protected $_user;

    public function __construct()
    {
    }

    public function getUserByAuthenticate( $account, $password )
    {
        /*
            new FacebookLibrary(.......)
            $fb->Authenticate(..........)
            if fail
                return false;
            $token = $fb->getToken();
            
            $users = new Users();
            $user = $users->getUserByAccount( $token );
            
            if( !$user ) {
                add new user by facebook
            }
            
            $user = $users->getUserByAccount( $token );
            if( !$user ) {
                return false;
            }

            $this->_user = $user;
            return $this->_user;
  
        */
        return false;
    }

    public function getUserByAccount( $account )
    {
        /*
        if( !$this->_user ) {
            return false;
        }
        return $this->_user;
        */
        return false;
    }

}

